<div class="layuimini-container">
    <form id="app-form" class="layui-form layuimini-form">
        
        <!-- <div class="layui-form-item">
            <label class="layui-form-label">phone</label>
            <div class="layui-input-block">
                <input type="text" name="phone" class="layui-input" lay-verify="required" placeholder="请输入phone" value="{$row.phone|default=''}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">nickname</label>
            <div class="layui-input-block">
                <input type="text" name="nickname" class="layui-input" lay-verify="required" placeholder="请输入nickname" value="{$row.nickname|default=''}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">avatar</label>
            <div class="layui-input-block">
                <input type="text" name="avatar" class="layui-input" lay-verify="required" placeholder="请输入avatar" value="{$row.avatar|default=''}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">（预留）性别：0=未设置 1=男 2=女</label>
            <div class="layui-input-block">
                <input type="text" name="gender" class="layui-input" lay-verify="required" placeholder="请输入（预留）性别：0=未设置 1=男 2=女" value="{$row.gender|default=''}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">（预留）</label>
            <div class="layui-input-block">
                <input type="text" name="email" class="layui-input" lay-verify="required" placeholder="请输入（预留）" value="{$row.email|default=''}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">token</label>
            <div class="layui-input-block">
                <input type="text" name="token" class="layui-input" lay-verify="required" placeholder="请输入token" value="{$row.token|default=''}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">pwd_md5</label>
            <div class="layui-input-block">
                <input type="text" name="pwd_md5" class="layui-input" lay-verify="required" placeholder="请输入pwd_md5" value="{$row.pwd_md5|default=''}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">收款人姓名</label>
            <div class="layui-input-block">
                <input type="text" name="payee_name" class="layui-input" lay-verify="required" placeholder="请输入收款人姓名" value="{$row.payee_name|default=''}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">收款人银行卡账号</label>
            <div class="layui-input-block">
                <input type="text" name="payee_bankno" class="layui-input" lay-verify="required" placeholder="请输入收款人银行卡账号" value="{$row.payee_bankno|default=''}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">收款人开户行</label>
            <div class="layui-input-block">
                <input type="text" name="payee_bankname" class="layui-input" lay-verify="required" placeholder="请输入收款人开户行" value="{$row.payee_bankname|default=''}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">推荐人路径（用户id序列）</label>
            <div class="layui-input-block">
                <input type="text" name="recommender_path" class="layui-input" lay-verify="required" placeholder="请输入推荐人路径（用户id序列）" value="{$row.recommender_path|default=''}">
            </div>
        </div> -->
        <!-- <div class="layui-form-item">
            <label class="layui-form-label">上级推荐人</label>
            <div class="layui-input-block">
                <input type="text" name="level1_recommender_phone" class="layui-input" lay-verify="required" placeholder="请输入推荐人电话" value="{$row.level1_recommender_phone|default=''}">
            </div>
        </div> -->
        <div class="layui-form-item">
            <label class="layui-form-label">上级推荐人</label>
            <div class="layui-input-block">
                <select name="level1_recommender" lay-verify="" lay-search>
                    {foreach name="userlist" item="val"}
                    <option value="{$val.id}" {if condition="$row.level1_recommender eq $val.id"}selected="" {/if}>{$val.nickname}（{$val.phone}）</option>
                    {/foreach}
                </select>     
            </div>
        </div>
        
        <!-- 
            <div class="layui-form-item">
            <label class="layui-form-label">上级推荐人</label>
            <div class="layui-input-block">
                <input type="text" name="level1_recommender" class="layui-input" lay-verify="required" placeholder="请输入上级推荐人" value="{$row.level1_recommender|default=''}">
            </div>
        </div>

            <div class="layui-form-item">
            <label class="layui-form-label">上级的上级推荐人</label>
            <div class="layui-input-block">
                <input type="text" name="level2_recommender" class="layui-input" lay-verify="required" placeholder="请输入上级的上级推荐人" value="{$row.level2_recommender|default=''}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">推荐二维码</label>
            <div class="layui-input-block">
                <input type="text" name="qrcode" class="layui-input" lay-verify="required" placeholder="请输入推荐二维码" value="{$row.qrcode|default=''}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">签名</label>
            <div class="layui-input-block">
                <input type="text" name="sign" class="layui-input" lay-verify="required" placeholder="请输入签名" value="{$row.sign|default=''}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">用户权限（权限id序列）</label>
            <div class="layui-input-block">
                <input type="text" name="roles" class="layui-input" lay-verify="required" placeholder="请输入用户权限（权限id序列）" value="{$row.roles|default=''}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">-1=删除  0=停用 1=正常</label>
            <div class="layui-input-block">
                <input type="text" name="state" class="layui-input" lay-verify="required" placeholder="请输入-1=删除  0=停用 1=正常" value="{$row.state|default=''}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">last_login_time</label>
            <div class="layui-input-block">
                <input type="text" name="last_login_time" class="layui-input" lay-verify="required" placeholder="请输入last_login_time" value="{$row.last_login_time|default=''}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">编辑银行卡信息权限：0=不允许  1=允许</label>
            <div class="layui-input-block">
                <input type="text" name="edit_bank_access" class="layui-input" lay-verify="required" placeholder="请输入编辑银行卡信息权限：0=不允许  1=允许" value="{$row.edit_bank_access|default=''}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">编辑昵称权限：0=不允许  1=允许</label>
            <div class="layui-input-block">
                <input type="text" name="edit_nickname_access" class="layui-input" lay-verify="required" placeholder="请输入编辑昵称权限：0=不允许  1=允许" value="{$row.edit_nickname_access|default=''}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">编辑头像权限：0=不允许  1=允许</label>
            <div class="layui-input-block">
                <input type="text" name="edit_avatar_access" class="layui-input" lay-verify="required" placeholder="请输入编辑头像权限：0=不允许  1=允许" value="{$row.edit_avatar_access|default=''}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">是否阅读协议：0=没有 1=阅读</label>
            <div class="layui-input-block">
                <input type="text" name="has_read_protocol" class="layui-input" lay-verify="required" placeholder="请输入是否阅读协议：0=没有 1=阅读" value="{$row.has_read_protocol|default=''}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">管理员token</label>
            <div class="layui-input-block">
                <input type="text" name="admin_token" class="layui-input" lay-verify="required" placeholder="请输入管理员token" value="{$row.admin_token|default=''}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">管理员密码</label>
            <div class="layui-input-block">
                <input type="text" name="admin_pwd" class="layui-input" lay-verify="required" placeholder="请输入管理员密码" value="{$row.admin_pwd|default=''}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">恶意用户</label>
            <div class="layui-input-block">
                <input type="text" name="bad" class="layui-input" lay-verify="required" placeholder="请输入恶意用户" value="{$row.bad|default=''}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">首次进入特权</label>
            <div class="layui-input-block">
                <input type="text" name="first_enter" class="layui-input" lay-verify="required" placeholder="请输入首次进入特权" value="{$row.first_enter|default=''}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">分仓id</label>
            <div class="layui-input-block">
                <input type="text" name="bucket_id" class="layui-input" lay-verify="required" placeholder="请输入分仓id" value="{$row.bucket_id|default=''}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">微信支付id</label>
            <div class="layui-input-block">
                <input type="text" name="open_id" class="layui-input" lay-verify="required" placeholder="请输入微信支付id" value="{$row.open_id|default=''}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">支付宝收款码</label>
            <div class="layui-input-block">
                <input type="text" name="alipay_img" class="layui-input"  placeholder="请输入支付宝收款码" value="{$row.alipay_img|default=''}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">微信收款码</label>
            <div class="layui-input-block">
                <input type="text" name="wxpay_img" class="layui-input"  placeholder="请输入微信收款码" value="{$row.wxpay_img|default=''}">
            </div>
        </div> -->
        <div class="hr-line"></div>
        <div class="layui-form-item text-center">
            <button type="submit" class="layui-btn layui-btn-normal layui-btn-sm" lay-submit>确认</button>
            <button type="reset" class="layui-btn layui-btn-primary layui-btn-sm">重置</button>
        </div>

    </form>
</div>